import request from '@/utils/request'

export function login(mobile, code, no) {
  return request({
    url: '/api/user/V1/login/mobileLogin',
    method: 'post',
    data: {
      mobile:mobile,
      code:code,
      no:no
    }
  })
}

export function getInfo() {
  return request({
    url: '/api/user/V1/persion/info',
    method: 'post'
  })
}

export function getCodeImg() {
  return request({
    url: 'auth/code',
    method: 'get'
  })
}
export function sendCode(data) {
  return request({
    url: '/api/user/V1/login/mobile/send-code',
    method: 'post',
    data
  })
}

export function logout() {
  return request({
    url: '/api/user/V1/login/logout',
    method: 'post'
  })
}
export default { sendCode }